package com.sxz.sbs.other;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;

import java.util.List;

/**
 * Created by Administrator on 2018/1/9 0009.
 */

public class TopRightMenuAdapter extends BaseQuickAdapter<TopRightMenuBean,BaseViewHolder>{

    public TopRightMenuAdapter(@Nullable List<TopRightMenuBean> data) {
        super(R.layout.item_top_right_menu_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TopRightMenuBean item) {
        helper.setText(R.id.popup_text,item.getText());
        helper.setImageResource(R.id.popup_iv,item.getDrawableId());
    }
}
